// INTERNAL FUNCTIONS


// FUNCTIONS FOR COLOR IMAGE ///////////////////////////////////////////////////////

BOOL C_Gamma			(PIMAGE, double, double);	// gamma
BOOL C_HistStat			(PIMAGE, int, int);			// histogram statistic
BOOL C_Log				(PIMAGE, double);			// log
BOOL C_Opposite			(PIMAGE);					// opposite
BOOL C_Clr2Gray			(PIMAGE);					// color to gray
BOOL C_UsrMesh			(PIMAGE, int*, int, int);	// user-defined mesh filtering


// FUNCTIONS FOR GRAY IMAGE ////////////////////////////////////////////////////////

BOOL G_Gamma			(PIMAGE, double, double);	// gamma
BOOL G_GradAver			(PIMAGE);					// gradiant average
BOOL G_HistEqua			(PIMAGE);					// histogram equalization
BOOL G_HistMatch		(PIMAGE, PIMAGE);			// histogram match
BOOL G_HistStat			(PIMAGE, int, int);			// histogram statistic
BOOL G_KirschDirFct3	(PIMAGE);					// Kirsch direction factor3
BOOL G_KirschDirFct5	(PIMAGE);					// Kirsch direction factor5
BOOL G_Log				(PIMAGE, double);			// log
BOOL G_Median			(PIMAGE);					// median filtering
BOOL G_NevitiaDirFct5	(PIMAGE);					// nevitia direction factor 5
BOOL G_Opposite			(PIMAGE);					// opposite
BOOL G_PrewittEdge		(PIMAGE);					// Prewitt edge
BOOL G_RobertsEdge		(PIMAGE);					// Roberts edge
BOOL G_SeedSpread		(PIMAGE, int);				// seed spread
BOOL G_SimpleSpread		(PIMAGE, int);				// simple spread
BOOL G_SobelEdge		(PIMAGE);					// Sobel edge
BOOL G_UsrMesh			(PIMAGE, PMODULE);	// user-defined mesh filtering


// FUNCTIONS FOR BINARY IMAGE //////////////////////////////////////////////////////

BOOL B_Opposite			(PIMAGE);					// opposite